
@import "variables.scss";
@import "animation.scss";
@import "common.scss";

.#{$namespace}widget-container,
.#{$namespace}widget-embedded,
.#{$namespace}full-screen,
.#{$namespace}chat-open
{
  all: initial;
  html, body, div, span, applet, object, iframe,
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  a, abbr, acronym, address, big, cite, code,
  del, dfn, em, img, ins, kbd, q, s, samp,
  small, strike, strong, sub, sup, tt, var,
  b, u, i, center,
  dl, dt, dd, ol, ul, li,
  fieldset, form, label, legend,
  table, caption, tbody, tfoot, thead, tr, th, td,
  article, aside, canvas, details, embed, 
  figure, figcaption, footer, header, hgroup, 
  menu, nav, output, ruby, section, summary,
  time, mark, audio, video {
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    margin-block-end:0;
  }
  /* HTML5 display-role reset for older browsers */
  article, aside, details, figcaption, figure, 
  footer, header, hgroup, menu, nav, section {
    display: block;
  }
  body {
    line-height: 1;
  }
  ol, ul {
    list-style: disc;
  }
  blockquote, q {
    quotes: none;
  }
  blockquote:before, blockquote:after,
  q:before, q:after {
    content: '';
    content: none;
  }
  table {
    border-collapse: collapse;
    border-spacing: 0;
  }
}


.#{$namespace}widget-container {
  bottom: 0;
  display: flex;
  flex-direction: column;
  margin: 0 20px 20px 0;
  @media screen and (max-width: 800px){
    margin: 0 12px 12px 0;
  }
  position: fixed;
  right: 0;
  width: auto;
  z-index: 999999;
  align-items: flex-end;
  justify-content: flex-end;

  &.#{$namespace}full-screen.#{$namespace}chat-open {
    @include widget-container-fs;
  }
  p {
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
  }
}

.#{$namespace}widget-embedded {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  position: relative;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 800px) {
  .#{$namespace}widget-container.#{$namespace}chat-open {
    @include widget-container-fs;
  }
}
